import server from "./server";
export default{
    login(username,password){
        const req = server({
            method:'post',
            url:'user/login',
            data:{
                userName:username,
                password:password
            }
        })
        return req
    },
    logout(){
        const req = server({
            method:'get',
            url:'user/logout'
        })
        return req
    },
    getuserlist(token){
        const req = server({
            method:'get',
            url:'user/list',
            headers:{
                'token':token
            }
        })
        return req
    }
}